package com.lcu.wl.modules.sys.mapper;

import com.lcu.wl.modules.sys.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author wanglei
 * @since 2021-01-13
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User selectByUserName(String username);

    List<Long>  selectMenuIdByUserId (Long userId);

    List<String> selectAllPerms(long userId);

    /**
     * 根据用户Id,查询加密后的密码
     * @param userId
     * @return
     */
    String selectPasswordById(Long userId);
}
